﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:System="clr-namespace:System;assembly=mscorlib" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2006" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:local="clr-namespace:RoutedEventViewer" 
    mc:Ignorable="d" 
    x:Class="Window1"
    Title="Routed Event Viewer" 
    Height="760" Width="800"
    ResizeMode="CanResize" 
    Background="#FF000000" 
    BorderBrush="{x:Null}"
    x:Name="ApplicationMainWindow"
    >
    <Window.Resources>

        <SolidColorBrush x:Key="NotHandledBrush" Color="#FF01D328"/>
        <SolidColorBrush x:Key="HandledBrush" Color="#FFD31601"/>

        <Storyboard x:Key="animateValueTimeline" Storyboard.TargetProperty="(RangeBase.Value)">
            <!--clear the tag property from the previous running of the animation against the target-->
            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(FrameworkElement.Tag)">
                <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Null}"/>
            </ObjectAnimationUsingKeyFrames>

            <DoubleAnimation From="0" To="100" Duration="0:0:1.5" />

            <!--set the tag property.  this will trigger the style assigned to the progress bar-->
            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(FrameworkElement.Tag)">
                <DiscreteObjectKeyFrame KeyTime="00:00:01.5" Value="Y"/>
            </ObjectAnimationUsingKeyFrames>
        </Storyboard>

    </Window.Resources>
    
    <Grid x:Name="gridLayout">
        
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition Width="446"/>
    		<ColumnDefinition Width="*"/>
    	</Grid.ColumnDefinitions>
    	<Grid.RowDefinitions>
    		<RowDefinition Height="Auto"/>
    		<RowDefinition Height="Auto" MinHeight="302.3"/>
    	</Grid.RowDefinitions>
		<Border HorizontalAlignment="Stretch" Margin="10,10,10,10" VerticalAlignment="Stretch" Width="Auto" Height="Auto" BorderBrush="#FF012055" BorderThickness="2,2,2,2" CornerRadius="20,20,20,20" x:Name="windowBorder">
    		<Border.Background>
    			<LinearGradientBrush EndPoint="0.5,-0.135" StartPoint="0.5,1.135">
    				<GradientStop Color="#FF02419B" Offset="0"/>
    				<GradientStop Color="#FF95BEFA" Offset="1"/>
    			</LinearGradientBrush>
    		</Border.Background>
		    <Border Margin="10,80,10,20" BorderBrush="#FF127C00" BorderThickness="2,2,2,2" CornerRadius="20,20,20,20" x:Name="classBorder">
			    <Border.Background>
				    <LinearGradientBrush EndPoint="0.5,1.011" StartPoint="0.5,-0.011">
					    <GradientStop Color="#FFB7A13F" Offset="0.001"/>
					    <GradientStop Color="#FFBBBBBB" Offset="1"/>
				    </LinearGradientBrush>
			    </Border.Background>
    		    <Border Margin="10,80,10,20" BorderBrush="#FF127C00" BorderThickness="2,2,2,2" CornerRadius="20,20,20,20" x:Name="gridBorder">
    			    <Border.Background>
    				    <LinearGradientBrush EndPoint="0.5,1.258" StartPoint="0.5,-0.258">
    					    <GradientStop Color="#FF3D79B0" Offset="0"/>
    					    <GradientStop Color="#FF80E3AF" Offset="1"/>
    				    </LinearGradientBrush>
    			    </Border.Background>
                    <Border Margin="10,80,10,20" x:Name="classAndButtonBorder" BorderBrush="#FF824800" BorderThickness="2,2,2,2" CornerRadius="20,20,20,20">
                        <Border.Background>
                            <LinearGradientBrush EndPoint="0.5,-0.509" StartPoint="0.5,1.509">
                                <GradientStop Color="#FF824800" Offset="0"/>
                                <GradientStop Color="#FFFFEFDC" Offset="1"/>
                            </LinearGradientBrush>
                        </Border.Background>

                        <Grid Margin="10,20,10,10">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition/>
                                <ColumnDefinition Width="Auto"/>
                                <ColumnDefinition/>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition/>
                                <RowDefinition/>
                            </Grid.RowDefinitions>


                            <Border Grid.Column="0" Grid.Row="0" BorderBrush="#FF001782" BorderThickness="2,2,2,2" CornerRadius="20,20,20,20" HorizontalAlignment="Stretch" Width="Auto" Margin="0,0,5,10">
                                <Border.Background>
                                    <LinearGradientBrush EndPoint="0.5,-0.509" StartPoint="0.5,1.509">
                                        <GradientStop Color="#FFFFEFDC" Offset="0"/>
                                        <GradientStop Color="#FF006782" Offset="1"/>
                                    </LinearGradientBrush>
                                </Border.Background>
                            </Border>


                            <Border Grid.Column="0" Grid.Row="1" BorderBrush="#FF3A3A3A" BorderThickness="2,2,2,2" CornerRadius="20,20,20,20" HorizontalAlignment="Stretch" Width="Auto" Margin="0,10,5,0">
                                <Border.Background>
                                    <LinearGradientBrush EndPoint="0.5,-0.509" StartPoint="0.5,1.509">
                                        <GradientStop Color="#FFFFEFDC" Offset="0"/>
                                        <GradientStop Color="#FFEBEBEB" Offset="1"/>
                                    	<GradientStop Color="#FFAAAAAA" Offset="0.535"/>
                                    </LinearGradientBrush>
                                </Border.Background>
                            </Border>
                            <StackPanel Grid.Column="1" Grid.Row="1"  Margin="0,0,0,0" x:Name="stackPanelForButton" VerticalAlignment="Bottom" Height="Auto" HorizontalAlignment="Center">
                                <local:TraceRoutedEventButton d:LayoutOverrides="Width" x:Name="btnStartDemo" Height="Auto" Content="Start Demo" Margin="0,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
                            </StackPanel>


                            <Border Grid.Column="2" Grid.Row="0" BorderBrush="#FF3A3A3A" BorderThickness="2,2,2,2" CornerRadius="20,20,20,20" HorizontalAlignment="Stretch" Width="Auto" Margin="5,0,0,10">
                                <Border.Background>
                                    <LinearGradientBrush EndPoint="0.5,-0.509" StartPoint="0.5,1.509">
                                        <GradientStop Color="#FFFFEFDC" Offset="0"/>
                                        <GradientStop Color="#FFEBEBEB" Offset="1"/>
                                    	<GradientStop Color="#FFAAAAAA" Offset="0.535"/>
                                    </LinearGradientBrush>
                                </Border.Background>
                            </Border>

                            <Border Grid.Column="2" Grid.Row="1" BorderBrush="#FF001782" BorderThickness="2,2,2,2" CornerRadius="20,20,20,20" HorizontalAlignment="Stretch" Width="Auto" Margin="5,10,0,0">
                                <Border.Background>
                                    <LinearGradientBrush EndPoint="0.5,-0.509" StartPoint="0.5,1.509">
                                        <GradientStop Color="#FFFFEFDC" Offset="0"/>
                                        <GradientStop Color="#FF006782" Offset="1"/>
                                    </LinearGradientBrush>
                                </Border.Background>
                            </Border>
                        </Grid>
                    </Border>
                </Border>
	        </Border>
   	    </Border>
        
        
        <Rectangle Fill="#FFDDFFCF" Stroke="#FF6F6F6F" StrokeThickness="3" RadiusX="10" RadiusY="10" Margin="14,22,0,0" OpacityMask="#68000000" HorizontalAlignment="Left" VerticalAlignment="Top" Width="177" Height="447">
            <Rectangle.StrokeDashArray>
                <System:Double>1</System:Double>
                <System:Double>3</System:Double>
            </Rectangle.StrokeDashArray>
        </Rectangle>
        <Rectangle Fill="#FFC2D3F6" Stroke="#FF6F6F6F" StrokeThickness="3" RadiusX="10" RadiusY="10" HorizontalAlignment="Left" Margin="254,22,0,0" Width="177" OpacityMask="#68000000" VerticalAlignment="Top" Height="447">
            <Rectangle.StrokeDashArray>
                <System:Double>1</System:Double>
                <System:Double>3</System:Double>
            </Rectangle.StrokeDashArray>
        </Rectangle>
        <TextBlock HorizontalAlignment="Left" Margin="30.3,13.157,0,0" VerticalAlignment="Top" Width="140" Height="Auto" Background="#FF003684" Foreground="#FFFFFFFF" Padding="5,0,5,0" Text="Tunnel" TextWrapping="Wrap" FontSize="14" FontWeight="Bold" TextAlignment="Center"/>
        <TextBlock Width="140" Height="Auto" Background="#FF003684" Padding="5,0,5,0" Text="Bubble" TextWrapping="Wrap" HorizontalAlignment="Right" Margin="0,13.157,31.3,0" VerticalAlignment="Top" Foreground="#FFFFFFFF" FontSize="14" FontWeight="Bold" TextAlignment="Center"/>
        <TextBlock Width="Auto" Height="Auto" Background="{x:Null}" Foreground="#FF000000" Padding="5,0,5,0" Text="Class &amp; Button Handlers" TextWrapping="Wrap" FontWeight="Normal" HorizontalAlignment="Left" Margin="48.5,260,0,0" d:LayoutOverrides="Height" VerticalAlignment="Top"/>
        <ProgressBar RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Left" Margin="158,36,0,0" x:Name="pbWindowPreview" VerticalAlignment="Top" Width="18" Height="50" Value="0" Orientation="Vertical" Foreground="{DynamicResource NotHandledBrush}" Visibility="Hidden" Style="{DynamicResource OnOffProgressBarStyle}" Tag="{x:Null}">
            <ProgressBar.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                    <SkewTransform AngleX="0" AngleY="0"/>
                    <RotateTransform Angle="-179.959"/>
                    <TranslateTransform X="0" Y="0"/>
                </TransformGroup>
            </ProgressBar.RenderTransform>
        </ProgressBar>
        <ProgressBar RenderTransformOrigin="0.5,0.5" Width="18" Value="0" Orientation="Vertical" HorizontalAlignment="Left" Margin="158,108,0,0" x:Name="pbGridPreview" Visibility="Hidden" Style="{DynamicResource OnOffProgressBarStyle}" Tag="{x:Null}" VerticalAlignment="Top" Height="50" d:LayoutOverrides="VerticalAlignment">
            <ProgressBar.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                    <SkewTransform AngleX="0" AngleY="0"/>
                    <RotateTransform Angle="-179.959"/>
                    <TranslateTransform X="0" Y="0"/>
                </TransformGroup>
            </ProgressBar.RenderTransform>
        </ProgressBar>
        <ProgressBar RenderTransformOrigin="0.5,0.5" Width="18" Value="0" Orientation="Vertical" HorizontalAlignment="Left" Margin="159,190,0,0" x:Name="pbStackPanelPreview" Visibility="Hidden" Style="{DynamicResource OnOffProgressBarStyle}" Tag="{x:Null}" VerticalAlignment="Top" Height="50">
            <ProgressBar.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                    <SkewTransform AngleX="0" AngleY="0"/>
                    <RotateTransform Angle="-179.959"/>
                    <TranslateTransform X="0" Y="0"/>
                </TransformGroup>
            </ProgressBar.RenderTransform>
        </ProgressBar>
        <ProgressBar RenderTransformOrigin="0.5,0.5" Value="0" Orientation="Vertical" HorizontalAlignment="Right" Margin="0,191,158,0" x:Name="pbStackPanelBubble" Width="18" Visibility="Hidden" Style="{DynamicResource OnOffProgressBarStyle}" Tag="{x:Null}" VerticalAlignment="Top" Height="50">
            <ProgressBar.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                    <SkewTransform AngleX="0" AngleY="0"/>
                    <RotateTransform Angle="-360"/>
                    <TranslateTransform X="0" Y="0"/>
                </TransformGroup>
            </ProgressBar.RenderTransform>
        </ProgressBar>
        <ProgressBar RenderTransformOrigin="0.5,0.5" Value="0" Orientation="Vertical" HorizontalAlignment="Right" Margin="0,108,158,0" x:Name="pbGridBubble" Width="18" Visibility="Hidden" Style="{DynamicResource OnOffProgressBarStyle}" Tag="{x:Null}" VerticalAlignment="Top" Height="50" d:LayoutOverrides="VerticalAlignment">
            <ProgressBar.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                    <SkewTransform AngleX="0" AngleY="0"/>
                    <RotateTransform Angle="-360"/>
                    <TranslateTransform X="0" Y="0"/>
                </TransformGroup>
            </ProgressBar.RenderTransform>
        </ProgressBar>
        <ProgressBar RenderTransformOrigin="0.5,0.5" Height="50" Value="0" Orientation="Vertical" HorizontalAlignment="Right" Margin="0,36,158,0" x:Name="pbWindowBubble" VerticalAlignment="Top" Width="18" Visibility="Hidden" Style="{DynamicResource OnOffProgressBarStyle}" Tag="{x:Null}">
            <ProgressBar.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                    <SkewTransform AngleX="0" AngleY="0"/>
                    <RotateTransform Angle="-360"/>
                    <TranslateTransform X="0" Y="0"/>
    			</TransformGroup>
    		</ProgressBar.RenderTransform>
    	</ProgressBar>
        
    	<RadioButton HorizontalAlignment="Left" Margin="41.5,55.737,0,0" x:Name="rdoWindowPreview" VerticalAlignment="Top" Width="Auto" Height="Auto" Content="Handle"/>
    	<RadioButton x:Name="rdoGridPreview" Width="Auto" Content="Handle" HorizontalAlignment="Left" Margin="50.5,118.077,0,0" VerticalAlignment="Top" Height="Auto"/>
    	<RadioButton x:Name="rdoStackPanelPreview" Width="Auto" Content="Handle" HorizontalAlignment="Left" Margin="55.5,200.96,0,0" VerticalAlignment="Top" Height="Auto"/>
    	<RadioButton x:Name="rdoStackPanelBubble" Content="Handle" HorizontalAlignment="Left" Margin="333.52,200.96,0,0" Width="Auto" VerticalAlignment="Top" Height="Auto"/>
    	<RadioButton x:Name="rdoGridBubble" Height="Auto" Content="Handle" HorizontalAlignment="Left" Margin="332.521,118.077,0,0" VerticalAlignment="Top" Width="Auto" RenderTransformOrigin="0.5,0.5">
    		<RadioButton.RenderTransform>
    			<TransformGroup>
    				<ScaleTransform ScaleX="1" ScaleY="1"/>
    				<SkewTransform AngleX="-3.187" AngleY="0"/>
    				<RotateTransform Angle="0"/>
    				<TranslateTransform X="0.444" Y="0"/>
    			</TransformGroup>
    		</RadioButton.RenderTransform>
    	</RadioButton>
    	<RadioButton x:Name="rdoNoHandle" Height="Auto" Content="Do Not Handle" HorizontalAlignment="Left" Margin="330.854,53.077,0,0" VerticalAlignment="Top" Width="Auto" IsChecked="True"/>
        
    	<RadioButton x:Name="rdoClassPreview" Content="Handle" Margin="84.9,300,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Width="Auto" Height="Auto"/>
    	<RadioButton x:Name="rdoClassBubble" Content="Handle" Margin="322.5,375,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Width="Auto" Height="Auto"/>
    	<ProgressBar RenderTransformOrigin="0.5,0.5" Width="18" Value="0" Orientation="Vertical" x:Name="pbClassPreview" Visibility="Hidden" Style="{DynamicResource OnOffProgressBarStyle}" Tag="{x:Null}" HorizontalAlignment="Left" Margin="158,286,0,0" VerticalAlignment="Top" Height="35">
    		<ProgressBar.RenderTransform>
    			<TransformGroup>
    				<ScaleTransform ScaleX="1" ScaleY="1"/>
    				<SkewTransform AngleX="0" AngleY="0"/>
    				<RotateTransform Angle="-179.959"/>
    				<TranslateTransform X="0" Y="0"/>
    			</TransformGroup>
    		</ProgressBar.RenderTransform>
    	</ProgressBar>
    	<ProgressBar RenderTransformOrigin="0.5,0.5" Value="0" Orientation="Vertical" x:Name="pbClassBubble" Width="18" Visibility="Hidden" Style="{DynamicResource OnOffProgressBarStyle}" Tag="{x:Null}" HorizontalAlignment="Left" Margin="272,358,0,0" VerticalAlignment="Top" Height="35">
    		<ProgressBar.RenderTransform>
    			<TransformGroup>
    				<ScaleTransform ScaleX="1" ScaleY="1"/>
    				<SkewTransform AngleX="0" AngleY="0"/>
    				<RotateTransform Angle="-360"/>
    				<TranslateTransform X="0" Y="0"/>
    			</TransformGroup>
    		</ProgressBar.RenderTransform>
    	</ProgressBar>
        
    	<ProgressBar RenderTransformOrigin="0.5,0.5" Width="18" Value="0" Orientation="Vertical" x:Name="pbButtonPreview" Visibility="Hidden" Style="{DynamicResource OnOffProgressBarStyle}" Tag="{x:Null}" Height="35" HorizontalAlignment="Left" Margin="158,358,0,0" VerticalAlignment="Top">
    		<ProgressBar.RenderTransform>
    			<TransformGroup>
    				<ScaleTransform ScaleX="1" ScaleY="1"/>
    				<SkewTransform AngleX="0" AngleY="0"/>
    				<RotateTransform Angle="-179.959"/>
    				<TranslateTransform X="0" Y="0"/>
    			</TransformGroup>
    		</ProgressBar.RenderTransform>
    	</ProgressBar>
    	<ProgressBar RenderTransformOrigin="0.5,0.5" Value="0" Orientation="Vertical" x:Name="pbButtonBubble" Visibility="Hidden" Style="{DynamicResource OnOffProgressBarStyle}" Tag="{x:Null}" Height="35" HorizontalAlignment="Left" Margin="272,286,0,0" VerticalAlignment="Top" Width="18">
    		<ProgressBar.RenderTransform>
    			<TransformGroup>
    				<ScaleTransform ScaleX="1" ScaleY="1"/>
    				<SkewTransform AngleX="0" AngleY="0"/>
    				<RotateTransform Angle="-360"/>
    				<TranslateTransform X="0" Y="0"/>
    			</TransformGroup>
    		</ProgressBar.RenderTransform>
    	</ProgressBar>
        
    	<RadioButton x:Name="rdoButtonPreview" Content="Handle" Width="Auto" Height="Auto" HorizontalAlignment="Left" Margin="84.9,374,0,0" VerticalAlignment="Top"/>
        
    	<RadioButton x:Name="rdoButtonBubble" Content="Handle" Height="Auto" HorizontalAlignment="Left" Margin="319.5,300,0,0" VerticalAlignment="Top" Width="Auto"/>
        
    	<CheckBox HorizontalAlignment="Left" Margin="28.019,35.777,0,0" x:Name="cbWindowPreviewHandler" VerticalAlignment="Top" FontWeight="Bold" Content="Window" IsChecked="True"/>
    	<CheckBox x:Name="cbGridPreviewHandler" FontWeight="Bold" Content="Grid" IsChecked="True" HorizontalAlignment="Left" Margin="37.293,98.117,0,0" VerticalAlignment="Top"/>
        
    	<CheckBox x:Name="cbStackPanelPreviewHandler" FontWeight="Bold" Content="Stack Panel" IsChecked="True" HorizontalAlignment="Left" Margin="41.589,181,0,0" VerticalAlignment="Top"/>
        
    	<CheckBox x:Name="cbButtonPreviewHandler" FontWeight="Bold" Content="Button" IsChecked="True" d:LayoutOverrides="Height" HorizontalAlignment="Left" Margin="71.854,357,0,0" VerticalAlignment="Top"/>
        
    	<CheckBox x:Name="cbButtonBubbleHandler" FontWeight="Bold" Content="Button" IsChecked="True" d:LayoutOverrides="Width" HorizontalAlignment="Left" Margin="306,282,0,0" VerticalAlignment="Top"/>
        
    	<CheckBox x:Name="cbStackPanelBubbleHandler" FontWeight="Bold" Content="Stack Panel" IsChecked="True" d:LayoutOverrides="Width" HorizontalAlignment="Left" Margin="322,181,0,0" VerticalAlignment="Top"/>
        
    	<CheckBox x:Name="cbGridBubbleHandler" FontWeight="Bold" Content="Grid" IsChecked="True" d:LayoutOverrides="Width" HorizontalAlignment="Left" Margin="321,98.117,0,0" VerticalAlignment="Top"/>
        
    	<CheckBox x:Name="cbWindowBubbleHandler" FontWeight="Bold" Content="Window" IsChecked="True" d:LayoutOverrides="Width" HorizontalAlignment="Left" Margin="321,37.117,0,0" VerticalAlignment="Top"/>
        
    	<CheckBox x:Name="cbClassBubbleHandler" FontWeight="Bold" Content="Class" IsChecked="True" d:LayoutOverrides="Width" HorizontalAlignment="Left" Margin="310,356,0,0" VerticalAlignment="Top"/>
        
    	<CheckBox x:Name="cbClassPreviewHandler" FontWeight="Bold" Content="Class" IsChecked="True" HorizontalAlignment="Left" Margin="71.854,282,0,0" VerticalAlignment="Top"/>
        
        
        <Border HorizontalAlignment="Stretch" Margin="0,10,10,10" Width="Auto" Grid.Column="1" Background="#FFDCDCDC" BorderBrush="#FFFF0000" BorderThickness="1,1,1,1" CornerRadius="20,20,20,20" Padding="5,5,5,5" MaxHeight="470" Height="470">
            <StackPanel Width="Auto" Height="Auto">
                <TextBlock HorizontalAlignment="Center" FontSize="14" Text="Viewer" TextWrapping="Wrap" x:Name="tbViewer"/>
                <ListBox x:Name="lbEventTracker"  Width="Auto" Height="370" IsSynchronizedWithCurrentItem="True"/>
                <Button x:Name="btnViewLogicalTree" Content="View Logical Tree" Margin="0,5,0,5"/>
                <Button x:Name="btnViewVisualTree" Content="View Visual Tree" Margin="0,0,0,10"/>
            </StackPanel>
        </Border>
        
    	<Border Margin="10,0,10,0" VerticalAlignment="Top" Height="Auto" Grid.ColumnSpan="2" Grid.Row="1" BorderThickness="1,1,1,1" CornerRadius="20,20,20,20" Padding="5,5,5,5" BorderBrush="#FF012055">
    		<Border.Background>
    			<LinearGradientBrush EndPoint="0.5,0.955" StartPoint="0.5,0.077">
    				<GradientStop Color="#FF02419B" Offset="0"/>
    				<GradientStop Color="#FF7098D1" Offset="1"/>
    			</LinearGradientBrush>
    		</Border.Background>
    		<StackPanel Width="Auto" Height="Auto" HorizontalAlignment="Left" VerticalAlignment="Top">
    			<TextBlock HorizontalAlignment="Center" FontSize="18" FontWeight="Bold" Text="Ledgend" TextWrapping="Wrap" Foreground="#FFFFE500"/>
    			<Grid Height="Auto">
    				<Grid.ColumnDefinitions>
    					<ColumnDefinition Width="Auto"/>
    					<ColumnDefinition Width="Auto"/>
    				</Grid.ColumnDefinitions>
    				<Grid.RowDefinitions>
    					<RowDefinition Height="Auto"/>
    					<RowDefinition Height="Auto"/>
    					<RowDefinition Height="Auto"/>
    					<RowDefinition Height="Auto"/>
    					<RowDefinition Height="Auto"/>
    					<RowDefinition Height="Auto"/>
	   					<RowDefinition Height="Auto"/>
    					<RowDefinition Height="Auto"/>
    				</Grid.RowDefinitions>
    				<ProgressBar Margin="0,5,10,5" Width="100" Height="20" Value="100" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" />
					<ProgressBar Margin="0,5,10,5" Width="100" Height="20" Value="100" Grid.Column="0" Grid.Row="1" Style="{DynamicResource OnOffProgressBarStyle}" Tag="Y" HorizontalAlignment="Left" />
    				<ProgressBar Margin="0,5,10,5" Width="100" Height="20" Value="100" Grid.Column="0" Grid.Row="2" Foreground="{DynamicResource HandledBrush}" HorizontalAlignment="Left" />
    				<ProgressBar Margin="0,5,10,5" Width="100" Height="20" Value="100" Grid.Column="0" Grid.Row="3" Style="{DynamicResource OnOffProgressBarStyle}" Tag="Y" Foreground="{DynamicResource HandledBrush}" HorizontalAlignment="Left" />										
    				<TextBlock Margin="0,5,10,5" Grid.Column="1" FontSize="14" Foreground="#FFFFFFFF" Text="Processing Routed Event" TextWrapping="Wrap" HorizontalAlignment="Left"/>
    				<TextBlock Margin="0,5,10,5" Grid.Column="1" Grid.Row="1" FontSize="14" Foreground="#FFFFFFFF" Text="Event Handler Processing Completed" TextWrapping="Wrap" HorizontalAlignment="Left"/>
    				<TextBlock Margin="0,5,10,5" Grid.Column="1" Grid.Row="2" FontSize="14" Foreground="#FFFFFFFF" Text="Optionally Processing Previously Handled Routed Event" TextWrapping="Wrap" HorizontalAlignment="Left"/>
    				<TextBlock Margin="0,5,10,5" Grid.Column="1" Grid.Row="3" FontSize="14" Foreground="#FFFFFFFF" Text="Previously Handled Routed Event - Processing Complete" TextWrapping="Wrap" HorizontalAlignment="Left"/>
                    <TextBlock Grid.Column="1" Grid.Row="5" Margin="0,5,0,5" FontSize="14" FontWeight="Normal" Foreground="#FFFFFFFF" Grid.ColumnSpan="2" Text="Check Boxes enable routed event handler for the object" HorizontalAlignment="Left"/>
                    <TextBlock Grid.Column="1" Grid.Row="6" TextWrapping="Wrap" Text="Radio Buttons select the routed event handler code that will mark the event as handled" HorizontalAlignment="Left" Margin="0,0,0,0" Width="352" Height="Auto" FontSize="14" Foreground="#FFFFFFFF"/>
    				<CheckBox HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="5" Content="CheckBox"/>
    				<RadioButton HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="6" Content="RadioButton" GroupName="dummy"/>
    			</Grid>
    		</StackPanel>
    	</Border>
        
    </Grid>
</Window>
